package cn.com.csg.smartenergy.mqtt;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 用于处理设备下线
 *
 * @author ysguo
 * @date 2019-07-24
 */
@Component
public class DeviceOfflineCallBack {

    @Autowired
    private DeviceOfflineHandler offlineHandler;

    @PostConstruct
    public void init() {
        // 调用异步线程
        this.offlineHandler.handleOfflineQueue();
    }
}
